const Koa = require('koa');
const router = require('./app/router')
const bodyparser = require('koa-bodyparser')

const app = new Koa();
app.use(bodyparser())
app.use(router)
// app.use(async ctx => {
//   ctx.body = 'Hello World';
// });

app.listen(3001,() => {
    console.log('http://localhost:3001')
});